package music_store.ms.dao;

import music_store.ms.pojo.Music;
import music_store.ms.vo.MusicListVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MusicMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Music record);

    int insertSelective(Music record);

    Music selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Music record);

    int updateByPrimaryKey(Music record);

    List<Music> selectByMusicName(String musicName);

    List<Music> selectByArtist(String artist);

    List<Music> selectByAlbumName(String albumName);

    List<Music> selectMusicList();

}